package com.ssy.lingxi.marketing.model.vo.common.request;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 审核请求类
 * @author yzc
 * @version 2.0.0
 * @date 2021/6/28
 */
@Data
public class CommonAgreeRequest implements Serializable {
    private static final long serialVersionUID = -5946919880894902726L;

    /**
     * 数据id
     */
    @NotNull(message = "数据Id要大于0")
    @Positive(message = "数据Id要大于0")
    private Long id;

    /**
     * 提交审批的状态：0-不通过；1-通过
     */
    @NotNull(message = "审批状态不能为空：0-不通过 1-通过")
    private Integer agree;

    /**
     * 审核原因
     */
    @Size(max = 120, message = "不通过原因最大120个字符")
    private String reason;
}
